import request from '../utils/request';//axios方法封装

//BOM列表
export const GETBOMDATA = query => {
    return request({
        url: 'GetBOMAll',
        method: 'get',
        params: query//get :param参数
    });
};
//BOM信息详情
export const GETBOMONEDATA = query => {
    return request({
        url: 'GetBOMDetail?id='+query,
        method: 'get',
        params: query//get :param参数
    });
};
//BOM添加
export const POSTBOMDATA = query => {
    return request({
        url: 'CreateBOMData',
        method: 'post',
        data: query//post :data参数
    });
};
